home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17780 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.3 KB  |  51 lines

  1. Newsgroups: comp.object,comp.lang.c++,comp.realtime,comp.dcom.telecom.tech,comp.arch.embedded
  2. Path: in2.uu.net!shore!mv!usenet
  3. From: ENGR@GSSI.MV.COM (Michael Furman)
  4. Subject: Re: Can OO be successful in real-time embedded systems?
  5. Message-ID: <Dq0Erw.IJJ@mv.mv.com>
  6. Mime-Version: 1.0
  7. Content-Type: Text/Plain; charset=US-ASCII
  8. Organization: GSSI
  9. Date: Wed, 17 Apr 1996 13:57:32 GMT
  10. References: <316BF0C5.1FE1@condat.de> <RMARTIN.96Apr11113222@rcm.oma.com> <RMARTIN.96Apr16161415@rcm.oma.com>
  11. X-Newsreader: WinVN 0.99.7
  12. X-Nntp-Posting-Host: gssi.mv.com
  13.  
  14. In article <RMARTIN.96Apr16161415@rcm.oma.com>, rmartin@oma.com says...
  15. >
  16. >In article <4kjfrh$28g@Starbase.NeoSoft.COM> timd@Starbase.NeoSoft.COM (Tim 
  17. Duga
  18. >n) writes:
  19. >
  20. >   Although I have no figures or measurements, I would have to say
  21. >   that I suspect that the one area where C++ is slower is that
  22. >   there is something about C++ that encourages programmers to
  23. >   perform a great deal more allocation and de-allocation of 
  24. >   memory, causing memory fragmentation and slowing the allocation/
  25. >   deallocation process.  
  26. >
  27. >There is nothing about C++ that encourages programmers to perform
  28. >a great deal more allocation and de-allocation of memory.  Some
  29. >popular styles advocate this, but they advocate it in C++ as well as
  30. >other languages.
  31.  
  32.    I think there is a little bit of that (like in any other higher level 
  33. language). For example it is very convenient to define "string" class with
  34. overloaded operators and use just almost intuitive expressions to work with 
  35. strings, that was impossible in C. But if you do that be aware that compiler
  36. will use some temporaries.
  37.   I thing this is really nothing about C++ particularly. Of cause this is
  38. about programming styles. But, the higher level language you use, the more
  39. attractive styles become available. And if you do not know well about them -
  40. you will face some tradeoff.
  41.  
  42. -- 
  43. <<< If you received it by E-mail: it is a copy of post to the newsgroup >>>
  44. ---------------------------------------------------------------
  45. Michael Furman,                       (603)893-1109
  46. Geophysical Survey Systems, Inc.  fax:(603)889-3984
  47. 13 Klein Drive - P.O. Box 97          engr@gssi.mv.com 
  48. North Salem, NH 03073-0097            71543.1334@compuserve.com
  49. ---------------------------------------------------------------
  50.  
  51.